/*
 * Query.java
 *
 * Created on 2007年10月6日, 下午10:33
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jeffxu.dao;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author jeff
 */
public class Query {
  
  public static final String DESC="desc";
  public static final String ASC="asc";
    
  private String order;
  private ArrayList<String> where;
  
  public String getOrder()
  {
      return this.order;
  }
  public void setOrder(String sort)
  {
      this.order = sort;
  }
  public void setOrder(String byWhat, String sort)
  {
      this.order = new StringBuffer().append(byWhat).append(" ").append(sort).toString();
  }
  
  public List<String> getWhere()
  {
      return this.where;
  }
  public void setWhere(String where)
  {
      this.where.add(where);
  }
    
}
